#!/bin/bash
# enable/disable cool-n'-quiet (in this case cpu scaling)
 
for CPU in /sys/devices/system/cpu/*; do
	if test $(cat $CPU/cpufreq/scaling_governor) = "performance" ; then
      		echo -n ondemand > $CPU/cpufreq/scaling_governor
	else
      		echo -n performance > $CPU/cpufreq/scaling_governor
	fi
done
